package com.zhiche.lisa.lspm.service.utils;

import java.util.Objects;

public class DictionaryUtil {

    /**
     * 挂车类型转换
     *
     * @param trailerType 挂车类型
     */
    public static String getTransMode(String trailerType) {
        if (Objects.isNull(trailerType)) return null;
        switch (trailerType) {
            case "t001":
                trailerType = "平板三位板";
                break;
            case "t002":
                trailerType = "平板四位板";
                break;
            case "t003":
                trailerType = "六位车";
                break;
            case "t004":
                trailerType = "七位车";
                break;
            case "t005":
                trailerType = "中置轴";
                break;
            case "t007":
                trailerType = "救援车";
                break;
            case "t008":
                trailerType = "人送地跑";
                break;
            case "t009":
                trailerType = "铁运J车";
                break;
            case "t010":
                trailerType = "铁运板架箱";
                break;
            case "t011":
                trailerType = "水运";
                break;
            case "t012":
                trailerType = "单车";
                break;
            case "t006":
                trailerType = "六位车";//推送ERP 五位车运输方式为 六位车
                break;
            default:
                trailerType = "未比对上字典";
                break;
        }
        return trailerType;
    }


}
